﻿using Demo01_Test.Models;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01_Test.ViewModels
{
    public class MainWindowViewModel : BindableBase
    {
        private ObservableCollection<SharpBase> _items = new ObservableCollection<SharpBase>();
        public ObservableCollection<SharpBase> Items
        {
            get { return _items; }
            set { SetProperty(ref _items, value); }
        }

        private SharpBase _selectedToolItem;
        public SharpBase SelectedToolItem
        {
            get { return _selectedToolItem; }
            set { SetProperty(ref _selectedToolItem, value); }
        }

        private ObservableCollection<SharpBase> _toolItems = new ObservableCollection<SharpBase>();
        public ObservableCollection<SharpBase> ToolItems
        {
            get { return _toolItems; }
            set { SetProperty(ref _toolItems, value); }
        }

        public MainWindowViewModel()
        {
         
            ToolItems.Add(new RectangleBaseToolItem() {  Width = 20, Height = 20 });
            ToolItems.Add(new EllipseBaseToolItem() {  Width = 20, Height = 20 });
            ToolItems.Add(new LineBaseToolItem() {  Width = 20, Height = 20 });
            ToolItems.Add(new DrawingBaseToolItem() {  Width = 20, Height = 20 });
        }
    }
}
